package com.mybatis_plusnew.mybatis_plusnew.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum SexEnum {
    MAN(1,"男"),
    FELAME(2,"女");

    @EnumValue
    private Integer sexId;
    private String sexName;

    //为什么枚举类的构造函数一给就不报错了
    SexEnum(Integer sexId, String sexName) {
        this.sexId = sexId;
        this.sexName = sexName;
    }
}
